#pragma once

#include "U7FileDefs.h"

// CShapeDoc document

class CShapeDoc : public CDocument
{
	DECLARE_DYNCREATE(CShapeDoc)

private:
	PBYTE m_pShapeFile;

public:
	int GetShapeCount() const;
	PSHAPEENTRY GetShapeFile(UINT index, long& length) const;

public:
	CShapeDoc();
	virtual ~CShapeDoc();
#ifndef _WIN32_WCE
	virtual void Serialize(CArchive& ar);   // overridden for document i/o
#endif
#ifdef _DEBUG
	virtual void AssertValid() const;
#ifndef _WIN32_WCE
	virtual void Dump(CDumpContext& dc) const;
#endif
#endif

protected:
	virtual BOOL OnNewDocument();

	DECLARE_MESSAGE_MAP()
public:
	virtual void DeleteContents();
};
